package com.SunSoft.PhoneRemoteControl;

import android.telephony.PhoneStateListener;
import android.widget.Toast;

final class cy extends PhoneStateListener
{
  public final void onCallStateChanged(int paramInt, String paramString)
  {
    switch (paramInt)
    {
    default:
    case 1:
    case 2:
    case 0:
    }
    do
    {
      do
      {
        do
        {
          return;
          MainControl.a("Test", "Main_CALL_STATE_RINGING:,来电话");
        }
        while ((!(MyApplication.a().a)) || (MyApplication.a().h));
        MyApplication.a().a(false, this.a);
        MainControl.d(this.a).a("is_soft_disconnect", "1");
        MyApplication.a().h = true;
        Toast.makeText(this.a, this.a.getString(2131099750), 0).show();
        return;
        MainControl.a("Test", "Main_CALL_STATE_OFFHOOK:,接通电话");
      }
      while ((!(MyApplication.a().a)) || (MyApplication.a().h));
      MyApplication.a().a(false, this.a);
      MainControl.d(this.a).a("is_soft_disconnect", "1");
      MyApplication.a().h = true;
      Toast.makeText(this.a, this.a.getString(2131099750), 0).show();
      return;
      MainControl.a("Test", "Main_CALL_STATE_IDLE:,挂电话");
    }
    while ((!(MyApplication.a().h)) || (MyApplication.a().e) || (MyApplication.a().f));
    MyApplication.a().a(true, this.a);
    MyApplication.a().h = false;
  }
}